<!--//This file is part of the store/retrieve project 
//    (http://code.google.com/p/storeretrieve/).
//
//    Store/retrieve is free software: you can redistribute it and/or modify
//    it under the terms of the GNU General Public License as published by
//    the Free Software Foundation, either version 3 of the License, or
//    (at your option) any later version.
//
//    Store/retrieve is distributed in the hope that it will be useful,
//    but WITHOUT ANY WARRANTY; without even the implied warranty of
//    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//    GNU General Public License for more details.
//
//    You should have received a copy of the GNU General Public License
//    along with store/retrieve. If not, see <http://www.gnu.org/licenses/>.
//-->


<%@ page contentType="text/html; charset=UTF-8"%>
<html>

<%@ page
	import="java.util.Properties,
		java.util.ArrayList,
		java.io.File,
		java.util.HashMap,
		java.lang.StringBuilder,
		java.text.DecimalFormat,
		de.devcity.storeretrieve.Tools"%>

<%@include file="includes/backend.jsp"%>

<%! 		
	Properties props;
%>

<%
	final String VERSION = "1.0.0b";
	props = Tools.loadPropertiesByUser(getServletContext(), request.getRemoteUser()); 
	if(props == null) {
		response.sendRedirect("login.jsp");
	} 
%>

<head>
<title>store/retrieve index</title>
<link rel="stylesheet" type="text/css"
	<% if(props!=null) out.print("href=\"resources/" + props.getProperty("CSS") + "\""); %> />
<link rel="icon" href="resources/logo-storeretrieve-favicon.png"
	type="image/png" />
</head>
<body>

	<%= Tools.getLogoHtml() %>

	<h1>
		store/retrieve
		<%= VERSION %></h1>

	<p>
		<a href="query.jsp">Start a query</a> / <a href="upload.jsp">Upload
			a file</a>
	<p>
	<h2>License</h2>
	<p>
		This program is free software: you can redistribute it and/or modify
		it under the terms of the GNU General Public License as published by
		the Free Software Foundation, either version 3 of the License, or (at
		your option) any later version. This program is distributed in the
		hope that it will be useful, but WITHOUT ANY WARRANTY; without even
		the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
		PURPOSE. See the GNU General Public License for more details. See <a
			href="http://www.gnu.org/licenses/">http://www.gnu.org/licenses/</a>.
	</p>

	<p>We stand on the shoulders of giants as this program is based on
		other open source projects as Apache Tomcat, Apache Commons etc. All
		rights belong to their respective owners.</p>

	<h2>Project and sources</h2>
	The store/retrieve toolbox is hosted on
	<a href="http://code.google.com/p/storeretrieve/"> our Google Code
		page</a>.

	<h2>System status</h2>
	<table>
		<tr>
			<td>Key</td>
			<td>Value</td>
		</tr>
		<tr>
			<td>Version</td>
			<td><%= VERSION %></td>
		</tr>
	</table>

</body>
</html>

